//
//  Feature.cpp
//  markerARLib
//
//  Created by CvidKal on 16/4/14.
//  Copyright © 2016年 CvidKal. All rights reserved.
//

#include "Feature.hpp"
#include "Frame.hpp"

namespace markerAR
{
    

Feature::Feature(float x,float y)
{
    
    _pos.x() = x;
    _pos.y() = y;
    point3D = nullptr;
    pointXYZ = nullptr;
    patch_with_border_ = nullptr;
}

Feature::Feature(float x,float y,Frame*frame)
{
    _pos.x() = x;
    _pos.y() = y;
    this->frame = frame;
    f = frame->K->cam2world(_pos);
    point3D = nullptr;
    pointXYZ = nullptr;
    patch_with_border_ = nullptr;
}
}